function compareTime(beginDate, endDate) {
    var beginDate = beginDate;
    var endDate = endDate;
    var d1 = new Date(beginDate.replace(/\-/g, "\/"));
    var d2 = new Date(endDate.replace(/\-/g, "\/"));
    if (beginDate != "" && endDate != "" && d1 >= d2) {
        return false
    }
}
function getCurrentTime() {
    var date = new Date();
    var strDate = date.getFullYear() + "-";
    strDate += date.getMonth() + 1 + "-";
    strDate += date.getDate();
    return strDate;
}